package com.atguigu.gmall.juc.thread;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/5/27 17:38
 */
public class Onethread {
    public static void main(String[] args) {
       Thread thread = new Thread(new Task());
       thread.start();
    }
    static class Task implements Runnable{

        public void run() {
            System.out.println("执行了任务");
        }
    }
}
